package bootstrap

import (
	"learn/config"
	"learn/pkg/asynq"
)

func SetAsynqWork() {
	list := config.AsynqServiceWork
	for i, v := range list {
		asynq.AsynqAddWork(i, v)
	}

	go asynq.AsynqStartWork()
}
